package com.chapter11;

enum Season{

    SPRING("春天","温暖的"),SUMMER("夏天","炎热的"),AUTUMN("秋天","凉爽的"),WINTER("冬天","寒冷的");

    private String name;
    private String effect;

    private Season(String name,String effect){
        this.name = name;
        this.effect = effect;
    }

    public String toString(){
        return name+ "是" + effect;
    }
}

public class Test{
    public static void main(String[] args) {
        System.out.println(Season.SPRING);
        System.out.println(Season.SUMMER);
        System.out.println(Season.AUTUMN);
        System.out.println(Season.WINTER);
    }
}


